#include <QCoreApplication>

#include "myobject.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    MyObject obj;
    QObject::connect(&obj, SIGNAL(mySignal(int)), &obj, SLOT(mySlot(int)));
    emit obj.mySignal(42);

    return a.exec();
}
